package com.bawei.module_mine.audit

import com.bawei.module_mine.api.MineApi
import com.bawei.module_mine.api.MineModel
import kotlinx.coroutines.flow.flow
import javax.inject.Inject

class AuditRepository @Inject constructor() {
    @Inject
    @MineModel.SignApi
    lateinit var mineApi: MineApi
    //车位申请
    fun parkingApply() = flow {
        emit(mineApi.parkingApply(1))
    }
    //访客申请
    fun visitApply() = flow {
        emit(mineApi.visitApply())
    }
    //公告申请
    fun newsApply() = flow {
        emit(mineApi.newsApply())
    }
}